using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_IdentityMap : EntityTypeConfiguration<t_Identity>
    {
        public t_IdentityMap()
        {
            // Primary Key
            this.HasKey(t => t.FName);

            // Properties
            this.Property(t => t.FName)
                .IsRequired()
                .HasMaxLength(30);

            // Table & Column Mappings
            this.ToTable("t_Identity");
            this.Property(t => t.FName).HasColumnName("FName");
            this.Property(t => t.FNext).HasColumnName("FNext");
            this.Property(t => t.FStep).HasColumnName("FStep");
        }
    }
}
